# coding=utf-8
# 代码文件：chapter12/ch12.2.1.py
import tkinter as tk

window = tk.Tk()

window.geometry('300x200')

buttonX = tk.Button(window, text='填充X轴方向', bg='red', height=5)
buttonX.pack(fill=tk.X)

buttonY = tk.Button(window, text='填充Y轴方向', bg='green', width=10)
buttonY.pack(side='left', fill=tk.Y)

window.mainloop()
